﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using PJ.Data.Inventory;

namespace PJ.Data.WCF
{
    public class InventoryBarCodeProviderClient : EntityProviderClient<IInventoryBarCodeWCFProvider, BaseInventoryBarCodeData>, IInventoryBarCodeWCFProvider
    {
        public InventoryBarCodeProviderClient() {
        }
        
        public InventoryBarCodeProviderClient(string endpointConfigurationName) : 
                base(endpointConfigurationName) {
        }
        
        public InventoryBarCodeProviderClient(string endpointConfigurationName, string remoteAddress) : 
                base(endpointConfigurationName, remoteAddress) {
        }
        
        public InventoryBarCodeProviderClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(endpointConfigurationName, remoteAddress) {
        }
        
        public InventoryBarCodeProviderClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(binding, remoteAddress) {
        }



        public string[] GetFragments(string sessionId, string ownerId, int mode)
        {
            if (ownerId == null || ownerId == "")
                throw new ArgumentNullException();
            return base.Channel.GetFragments(sessionId, ownerId, mode);

        }

    }
}
